Page({
  data: {
    tabs: [
      {title: '公司消息'},
      {title: '官方消息'},
      {title: '装修知识'},
    ],
    myindex:0,
    thumb: 'https://gw.alipayobjects.com/zos/rmsportal/VBqNBOiGYkCjqocXjdUj.png',
    footerImg: 'https://gw.alipayobjects.com/zos/rmsportal/VBqNBOiGYkCjqocXjdUj.png',
  },
  handleTabClick({index}) {
    this.setData({
      myindex:index,
    })
    console.log(this.data.myindex)
  },
  onCardClick: function(ev) {
    my.showToast({
      content: ev.info,
    });
  }

});

